#!/usr/bin/bash

shellDir=$(cd "$(dirname "$0")";pwd)
oldDir=`pwd`

cd ${shellDir}

if [[ -f "logs/run.pid" ]]; then
    while true
    do
        echo -n "确定要停止安装器（y/n）"
        read confirm
        if [ "x${confirm}" == "xy" ]; then
            kill -9 `cat logs/run.pid`
            break
        fi
        if [ "x${confirm}" == "xn" ]; then
            echo "取消操作。。。"
            break
        fi
    done
fi

